<style type="text/css">
    .pageFormContent{
        padding-top:20px;
        padding-left:15px;
    }
    .pageFormContent .adRight label {
        width: 100%;
        height: 26px;
        line-height: 26px;
    }
</style>
<div class="pageContent">
    <form method="post" action="{:url('Activity/edit')}" class="pageForm" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div layoutH="58">
            <div class="pageFormContent">
                <div class="unit">
                    <label>活动名称：</label>
                    <input type="text" name="activity_name" maxlength="200" class="required" value="{$activity.activity_name}" />
                </div>
                <div class="unit">
                    <label>活动礼物：</label>
                    <table>
                        {volist name="gift" id="vo" key="k"}
                        <tr>
                            <td style="text-align:left;">
                                {$vo.gift_name}-{$vo.gift_arr.$k}
                            </td>
                            <td>
                                <!--<input type="checkbox" {eq name="$vo.gift_arr.$k" value="$vo.id"}checked{/eq} name="gift[]" value="{$vo.id}">-->
                                <input type="checkbox" {in name="vo.id" value="$activity.gift_id"}checked{/in} name="gift[]" value="{$vo.id}">
                            </td>
                        </tr>
                        {/volist}
                    </table>
                </div>
<!--                <div class="unit">
                    <label>图片：</label>
                    {:widget('Upload/image', ['activity_img', $activity.activity_img])}
                </div>-->
                <div class="unit">
                    <label>开始时间：</label>
                    <input name="opentime" type="text" class="date" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" value="{$activity.opentime|date='Y-m-d H:i:s',###}">
                </div>
                <div class="unit">
                    <label>结束时间：</label>
                    <input name="closetime" type="text" class="date" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" value="{$activity.closetime|date='Y-m-d H:i:s',###}">
                </div>
<!--                <div class="unit">
                    <label>排序：</label>
                    <input type="text" name="sort" size="3" maxlength="3" class="digits" value="{$activity.sort}" />
                </div>-->
                <input type="hidden" name="activity_id" value="{$activity.id}">
            </div>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>
</div>